import java.util.Scanner;

public class Main {





    /**
     *
     * JAVA18 二维数组求和
     * @param args
     */
    public static void main1(String[] args) {
        int[][]  arr = {{11,33,55},{22,44,66,88},{131,214,315,146},{928,827,726,625},{424,525}};
        int sum=add(arr);
        System.out.println(sum);
    }

    public static int add(int[][] arr) {
        int sum=0;

        //write your code here......
        for (int i = 0;i<arr.length;i++){
            for (int j = 0;j<arr[i].length;j++){
                sum += arr[i][j];
            }
        }

        return sum;
    }

    /**
     * JAVA19 修改Data类的定义
     * @param args
     */
    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());
        }
    }

}

class Data {

    private int x;
    private int y;


    public Data(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}